import http from "@/api";

/**
 * @name 项目列表
 */
// 获取项目列表
export const getProjectListApi = (params) => {
    return http.get(`/api/project/projectData/`, params);
};

// 获取单条项目的信息
export const getProjectApi = (params) => {
    return http.get(`/api/project/projectData/${params}/`);
};

// 上传项目图标
export const postProjectFile = (params) => {
    return http.post(`/api/project/projectFile/`, params);
};

// 新增项目
export const postProjectApi = (params) => {
    return http.post(`/api/project/projectData/`, params);
};

// 获取下拉选择的项目，仅ID和项目名称
export const getSelectProjectListApi = (params) => {
    return http.get(`/api/project/selectProject/`, params);
};
